import request from '@/utils/request'

// 获取列表
export function getSysOfficeTree (params) {
  return request({
    url: 'sys/getSysOfficeList',
    method: 'post',
    params
  })
}
// 新增机构
export function addOffice (params) {
  return request({
    url: 'sys/addOffice',
    method: 'post',
    params
  })
}
// 查询
export function getSysOfficeInfobyName (params) {
  return request({
    url: 'sys/getSysOfficeInfobyName',
    method: 'post',
    params
  })
}
// 修改
export function updateSysOfficeInfo (params) {
  return request({
    url: 'sys/updateSysOfficeInfo',
    method: 'post',
    params
  })
}
